package com.glsc.ngateway.common.base.domainmapper.cmdb;
import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.cmdb.FlowFormPartStandardModify;
import com.glsc.ngateway.common.api.flowable.dto.task.formData.cmdb.domainDto.FlowFormPartStandardModifyDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: zhengyr
 * @Desc: domin到dto转换
 */
@Mapper(componentModel = "spring")
public interface FlowFormPartStandardModifyMapper {

    FlowFormPartStandardModifyMapper INSTANCE = Mappers.getMapper(FlowFormPartStandardModifyMapper.class);

    @Mapping(target = "appendicesFileList", ignore = true)
    FlowFormPartStandardModifyDto domain2dto(FlowFormPartStandardModify domain);
    
    List<FlowFormPartStandardModifyDto> domain2dto(List<FlowFormPartStandardModify> domain);

    @Mapping(target = "appendicesFileIdList", ignore = true)
    @Mapping(target = "insertTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    FlowFormPartStandardModify dto2domain(FlowFormPartStandardModifyDto dto);

    List<FlowFormPartStandardModify> dto2domain(List<FlowFormPartStandardModifyDto> dto);
}
